﻿<div id="dashboard">

</div>

<div id="spinnerDiv" style="display: none">
    <img src="@Url.Content("~/Content/Images/ajax-loader.gif")" alt="loading"/>
</div>

<script type="text/javascript">

    $(function () {

        refreshDashboard();

        function refreshDashboard() {

            $("#dashboard").block({message:$('#spinnerDiv'),fadeIn:200});

            $('#dashboard').load('@Url.Action("ProductsSummary")', function () {
                $("#dashboard").unblock();
                setTimeout(function () { refreshDashboard(); }, 10000);

            });
        }
    });
</script>